#include <iostream>
#include <cmath>
using namespace std;
class dis
{
private:
    double x, y;

public:
    dis(double x1, double y1)
    {
        x = x1;
        y = y1;
    }
    double getx()
    {
        return x;
    }
    double gety()
    {
        return y;
    }
    static double log(dis &, dis &);
};
double dis::log(dis &a, dis &b)
{
    double px = a.x - b.x;
    double py = a.y - b.y;
    return sqrt(px * px + py * py);
}
int main()
{
    dis p1(3.5, 4.5), p2(5.5, 6.5);
    double d = dis::log(p1, p2);
    cout << "The distance is:" << d << endl;
    return 0;
}
